
namespace JTZY.Model.Goods.Dto
{
    /// <summary>
    /// 商品分类查询对象
    /// </summary>
    public class CorecmsgoodscategoryQueryDto : PagerInfo 
    {
    }

    /// <summary>
    /// 商品分类输入输出对象
    /// </summary>
    public class CorecmsgoodscategoryDto
    {
        [Required(ErrorMessage = "序列不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "上级分类id不能为空")]
        public int ParentId { get; set; }

        [Required(ErrorMessage = "分类名称不能为空")]
        public string Name { get; set; }

        [Required(ErrorMessage = "类型ID 关联 goods_type.id不能为空")]
        public int TypeId { get; set; }

        [Required(ErrorMessage = "分类排序不能为空")]
        public int Sort { get; set; }

        public string ImageUrl { get; set; }

        [Required(ErrorMessage = "是否显示不能为空")]
        public bool IsShow { get; set; }

        public DateTime? CreateTime { get; set; }



        [ExcelColumn(Name = "是否显示")]
        public string IsShowLabel { get; set; }
    }
}